<%--
    Document   : admin-managedbBody
    Created on : Apr 26, 2011, 9:01:18 PM
    Author     : hussein
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib  prefix="ds" uri="/WEB-INF/tlds/displaycategories.tld" %>
<script type="text/javascript">
var req=null;
            function action1(){
                if(window.XMLHttpRequest) req=new XMLHttpRequest();
                else
                    if(window.ActiveXObject) req=new ActiveXObject(Microsoft.XMLHTTP);
                req.onreadystatechange=handleRequest;
                req.open("GET", "getStats.do?u="+document.getElementById("1").value,true);
                req.send(null);
            }
            function handleRequest(){
                if(req.readyState==4){
                    resp=req.responseText;
                    document.getElementById("out").innerHTML=resp;
                }
            }

</script>
<div id="page-body">
    <br>
    <br><br>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <h2>Get User Statistics : </h2><br>
    <h4>Enter A Username : &nbsp;&nbsp;</h4><input type="text" id="1" name="username" onkeyup="action1();"/><h3><button onclick="action1();">Go</button></h3>
    <br><br>
    <div id="out"></div>
<br>
</div>